package cinebuddy.jdbcdriver;

import java.util.*;

import javax.servlet.*;
import javax.servlet.http.*;


public class Loader extends HttpServlet  {
	@Override
	public void init(ServletConfig config) throws ServletException{
		try{
			String drivers = config.getInitParameter("jdbcdriver");
			StringTokenizer st = new StringTokenizer(drivers,",");
			while(st.hasMoreTokens()){
				String jdbcDriver = st.nextToken();
				Class.forName(jdbcDriver);
			}
		}catch(Exception ex){
			System.out.println(ex.getMessage());
			//throw new ServletException(ex);
		}
	}
}
